package com.han.jdbc.mybatis.spring.mappers;

import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
* @author hanpeng
* @version 创建时间：2020年7月20日 下午1:52:10
* @ClassName 类名称
* @Description 类描述
*/
@Repository
public class Apple {
	@Transactional(isolation=Isolation.DEFAULT,propagation=Propagation.REQUIRED,readOnly=true)
			      
			
			
	public void name() {
		Propagation required = Propagation.REQUIRED;
		Propagation mandatory = Propagation.MANDATORY;
		Propagation nested = Propagation.NESTED;
		Propagation never = Propagation.NEVER;
		Propagation notSupported = Propagation.NOT_SUPPORTED;
		Propagation requiresNew = Propagation.REQUIRES_NEW;
		Propagation supports = Propagation.SUPPORTS;
	}
}
